package com.bitcola.me.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 交易对
 *
 * @author Mr.AG
 * @email 463540703@qq.com
 * @date 2018-08-01 09:03:17
 */
@Data
@Table(name = "ag_admin_v1.cola_coin_symbol")
public class ColaCoinSymbol implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    @Id
    private String id;

    //币种
    @Column(name = "coin_code")
    private String coinCode;

    //交易介质（USDT,BTC,ETH）
    @Column(name = "symbol")
    private String symbol;

    //交易费率
    @Column(name = "fees")
    private BigDecimal fees;

    @Column(name = "sort")
    private Integer sort;
    @Column(name = "buy_open_time")
    private Long buyOpenTime;
    @Column(name = "sell_open_time")
    private Long sellOpenTime;

    /**
     * 单笔最小限额
     */
    @Column(name = "sell_max_number")

    private BigDecimal sellMaxNumber;
    /**
     * 单笔最大限额
     */
    @Column(name = "buy_max_number")

    private BigDecimal buyMaxNumber;

    @Column(name = "sell_min_number")

    private BigDecimal sellMinNumber;
    /**
     * 单笔最大限额
     */
    @Column(name = "buy_min_number")

    private BigDecimal buyMinNumber;



    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }


    @Transient

    String icon;
    @Column(name = "amount_scale")
    private Integer amountScale;
    @Column(name = "price_scale")
    private Integer priceScale;


}
